<?php

namespace app\validate;

use think\Validate;

class DebitClientValidate extends Validate
{
    protected $rule = [
        'name|名称'       =>  'require|max:100',
        'card_number|卡号'       =>  '',
        'address|地址'       =>  'max:250',
        'phone|电话'       =>  'max:50',
        'total_amount|总额度'       =>  'number',
        'available_credit|可用额度'       =>  'number'

    ];

    protected $scene = [
        'add' => ['name', 'card_number', 'phone', 'address', 'total_amount', 'available_credit']
    ];

}